Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solaris11_network: Handle solaris 11 zone interfaces #742

Merged
merged 1 commit into from
Apr 4, 2016

Conversation

MarkGibbons
Copy link
Contributor

PHYSRUNNING is now a valid flag for an interface.

The Solaris 11 zones "route -n get default” command output returns the
interface name, net0, but not the specific instance net0:2. The output
changed from Solaris 10 to Solaris 11. Use the verbose output
"route -v -n get default" to find the interface index and use the
name and index to find the full interface name from the ifconfig -a
output.

OHAI network is sort of incomplete for solaris 11 zone network interfaces. The flags are not reported because PHYSRUNNING might be in the status. The default_ipaddress isn't returned because output from the "route -n get default" command changed between solaris 10 and solaris 11.

I changed a couple of things to fix default rubocop alerts before I figured out chef-style. The modules do pass chef-style 0.3.0 now, but there are a few, probably unneeded, fixes for other default rubocop alerts I left in the code.

I've tested the code on Solaris 11, and u6 and u11 versions of Solaris 10.

Thanks,
Mark

# index 3
# inet6 tunnel src fe80::1 tunnel dst fe80::2
# tunnel security settings --> use 'ipsecconf -ln -i ip.tun1'
# tunnel hop limit 60 tunnel encapsulation limit 4
# inet 10.0.0.208 --> 10.0.0.210 netmask ff000000
#qfe1: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 3
# qfe1: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 3
# usesrc vni0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is chefstyle doing this? because its actually mangling that comment a bit... the indentation is now off in the comment....

@lamont-granquist
Copy link
Contributor

yeah, so 👍 i guess i only have a question about the comment indentation mangling and if that is chefstyle doing that or not.

@MarkGibbons
Copy link
Contributor Author

I’ll revert the comments to their previous format. Chefstyle is not doing that. I made some changes to suppress rubocop alerts before I figured out chef style. Sorry.

PHYSRUNNING is now a valid flag for an interface.

The Solaris 11 zones "route -n get default” command output returns the
interface name, net0, but not the specific instance net0:2. The output
changed from Solaris 10 to Solaris 11. Use the verbose output
"route -v -n get default" to find the interface index and use the
name and index to find the full interface name from the ifconfig -a
output.
@lamont-granquist
Copy link
Contributor

👍

@MarkGibbons MarkGibbons changed the title solairs11_network: Handle solaris 11 zone interfaces solaris11_network: Handle solaris 11 zone interfaces Mar 8, 2016
@mcquin
Copy link
Contributor

mcquin commented Mar 30, 2016

Code looks good to me. @thommay do you have any concerns?

@thommay
Copy link
Contributor

thommay commented Apr 4, 2016

Looks good to me, thanks @MarkGibbons! 👍

@thommay thommay merged commit fec0959 into chef:master Apr 4, 2016
@thommay thommay added Type: Bug Does not work as expected. and removed Bug labels Jan 24, 2017
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants